<%include ../../inc/header.ejs%>
<!-- html主体代码 start -->
<fieldset class="layui-elem-field layui-field-title">
    <legend>数据管理操作</legend>
</fieldset>
<form class="layui-form" action="" id="data-form">
    <div class="layui-form-item">
        <label class="layui-form-label">角色名称</label>
        <div class="layui-input-block">
            <input value="<% if((typeof obj)!=='undefined'){%><%=obj.name%><%}%>" type="text" name="name" id="model-name" required placeholder="请输入标题" class="layui-input">
        </div>
    </div>
</form>
<!-- html主体代码 end -->
<%include ../../inc/js.ejs%>

<!-- 私有脚本 start -->
<script>
    function getPageVal() {
        var obj = getFrom('#data-form');
        if(!autoRequired('model-',obj)){
            return false;
        }
        return obj;
    }
</script>
<!-- 私有脚本 end -->
<%include ../../inc/footer.ejs%>